package com.spring.component.test.xml.test;

import com.spring.component.xml.annotation.Level;
import com.spring.component.xml.annotation.Xml;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.sql.Timestamp;

/**
 * @ClassName: Head
 * @Description:
 * @author: liushihua
 * @date: 2019/1/7
 **/
@Getter
@Setter
@ToString
@Level(value = 1, xmls = {@Xml(attrName = "code", xmlName = "CODE", isElement = true),
    @Xml(attrName = "timestamp", xmlName = "TIMESTAMP", isElement = true)})
public class Head {
  private String code;
  @Xml(isElement = true)
  private String id;
  private Timestamp timestamp;
  @Xml(isElement = true)
  private String serviceId;
}
